<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>

<!DOCTYPE html>
<html lang="zh-CN"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
	<meta charset="UTF-8">
	<title>凯盛项目管理系统</title>
	<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
</head>
<body class="body">
	<div class="navbar navbar-fixed-top"  >
		<div class="navbar-inner" >
		
			<div class="container">
			<marquee scrolldelay="40" direction="right" onmouseover="this.stop()" onMouseOut="this.start()">
				<a class="brand" href="main.jspx" style="color:red;margin-top:0px;">凯盛项目管理系统  欢迎你的登陆！</a>
				</marquee>
			</div>
		</div>
	</div>
	
	
	<div class="container">
	  <div class="row">
		<div class="span9">
			<form class="form-horizontal" action="task.jspx?_m=t5" method="post">
        <fieldset>
        <input type="hidden" name ="taskid" value="${requestScope.task.id}">
       
          <legend>编辑任务</legend>
          <div class="control-group">
            <label class="control-label" for="input01">任务名称</label>
            <div class="controls">
              <input class="span5" id="input01" x-webkit-speech="undefined" type="text" name="taskname" value="${requestScope.task.name}">
              <p class="help-block">In addition to freeform text, any HTML5 text-based input appears like so.</p>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">开始时间</label>
            <div class="controls">
              <input class="span5" id="input01" x-webkit-speech="undefined" type="text" name="begintime" value="${requestScope.task.begintime}" >
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">截止时间</label>
            <div class="controls">
              <input class="span5" id="input01" x-webkit-speech="undefined" type="text" name="endtime" value="${requestScope.task.endtime}">
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">任务描述</label>
            <div class="controls">
              <textarea class="span5" rows="8" name="desc">${requestScope.task.desc}</textarea>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="multiSelect">状态</label>
            <div class="controls">
              <select id="multiSelect" name="state">
              <c:choose>
              <c:when test="${requestScope.task.state=='新任务'}">
              <option selected="selected">新任务</option>
                <option>进行中</option>
                <option>已完成</option>
              </c:when>
               <c:when test="${requestScope.task.state=='进行中'}">
              <option selected="selected">进行中</option>
                <option>新任务</option>
                <option>已完成</option>
              </c:when>
                <c:when test="${requestScope.task.state=='已完成'}">
              <option selected="selected">已完成</option>
                <option>新任务</option>
                <option>进行中</option>
              </c:when>
                 <c:otherwise>
                 <option selected="selected"></option>
                <option >已完成</option>
                <option>新任务</option>
                <option>进行中</option>
                </c:otherwise>
              </c:choose>
             
              </select>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="multiSelect">级别</label>
            <div class="controls">
              <select id="multiSelect" name="level">
              <c:choose>
              <c:when test="${requestScope.task.level== '重要紧急'}">
              <option selected="selected">重要紧急</option>
                <option>重要不紧急</option>
                <option>紧急不重要</option>
                <option>不紧急不重要</option>
              </c:when>
              <c:when test="${requestScope.task.level=='重要不紧急'}">
              <option selected="selected">重要不紧急</option>
                <option>重要紧急</option>
                <option>紧急不重要</option>
                <option>不紧急不重要</option>
              
              </c:when>
              <c:when test="${requestScope.task.level=='紧急不重要 '}">
              <option selected="selected">紧急不重要</option>
                <option>重要紧急</option>
                <option>重要不紧急</option>
                <option>不紧急不重要</option>
             
              </c:when>
               <c:when test="${requestScope.task.level=='不紧急不重要 '}">
              <option selected="selected">不紧急不重要</option>
                <option>重要紧急</option>
                <option>重要不紧急</option>
                <option>紧急不重要</option>
             
              </c:when>
              <c:otherwise>
              <option selected="selected"></option>
                <option>重要紧急</option>
                <option>重要不紧急</option>
                <option>紧急不重要</option>
                <option>不紧急不重要</option>
              </c:otherwise>
              </c:choose>
              
                
              </select>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="multiSelect">负责人</label>
            <div class="controls">
              <select id="multiSelect" name="people">
        	   <option selected="selected">${requestScope.task.employee.username}</option> 
              	<c:forEach  items="${requestScope.listuser}" var="list">
                <option >${list.username}</option>
                </c:forEach>
                <!-- <option>Jerry</option> -->
              </select>
            </div>
          </div>
          <div class="control-group">
            <label class="control-label" for="input01">当前进度</label>
            <div class="controls">
              <input class="span5" id="input01" x-webkit-speech="undefined" type="text" name="rate" value="${requestScope.task.rate}">
            </div>
          </div>
          
          <div class="form-actions">
            <button type="submit" class="btn btn-primary">保存</button>
            <a class="btn" href="goal.jspx?id=${sessionScope.mypro.id}&_m=s1">返回</a>
          </div>
        </fieldset>
      </form>          
          	
		</div>
		
	  </div>
	</div>

</body></html>